package com.saber.bean;

public class ReportItemQueue {
	private ReportItem ri;
	private Integer result;

	public ReportItemQueue(ReportItem ri, Integer result){
		this.ri = ri;
		this.setResult(result);
	}

	/**
	 * @return the ri
	 */
	public ReportItem getRi() {
		return ri;
	}

	/**
	 * @param ri the ri to set
	 */
	public void setRi(ReportItem ri) {
		this.ri = ri;
	}


	/**
	 * @return the result
	 */
	public Integer getResult() {
		return result;
	}

	/**
	 * @param result the result to set
	 */
	public void setResult(Integer result) {
		this.result = result;
	}

	@Override
	public boolean equals(Object obj){
		if(this == obj) {
			return true;
		}
		if(!(obj instanceof ReportItemQueue)) {
			return false;
		}
		return this.ri.getKey().equals(((ReportItemQueue)obj).ri.getKey());
	}

	@Override
    public int hashCode() {
        return this.ri.getKey().hashCode();
    }
}
